heading = new widget("heading","images/arrow.png","adjustHeading(~~icon)",1005,"gpsInfo()","initHeading(~~icon)")
//heading.display()

var direction=0;
function initHeading(icon){
	$("#"+icon).css({
		display:"block",
		position:"relative",
		left:"50%",
		top:"50%",
		marginLeft:"-23px",
		marginTop:"-23px",
		width:"46px",
		height:"46px"
	})
}

function gpsInfo(){
     showWalletGPSInfo();
}

function adjustHeading(icon){
   $("#"+icon).css({
	 transform:"rotate("+(orientationAlpha-180)+"deg)"
   })
}
